package com.dmgis.hndz.service.impl;

import com.dmgis.hndz.mapper.Zhaa03bMapper;
import com.dmgis.hndz.pojo.Zhaa03b;
import com.dmgis.hndz.service.Zhaa03bService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Zhaa03bServiceImpl implements Zhaa03bService {
    @Autowired
    private Zhaa03bMapper zhaa03bMapper;

    @Override
    public List<Zhaa03b> ztlayertree(String advcode) {
        return zhaa03bMapper.ztlayertree(advcode);
    }

    @Override
    public int addLayer(Zhaa03b zhaa03b) {
        try {
            return zhaa03bMapper.addLayer(zhaa03b);
        } catch (Exception e) {
            throw e;
        }
    }

    @Override
    public int updateLayer(Zhaa03b zhaa03b) {
        try {
            return zhaa03bMapper.updateLayer(zhaa03b);
        } catch (Exception e) {
            throw e;
        }
    }

    @Override
    public int deleteLayer(String id) {
        try {
            return zhaa03bMapper.deleteLayer(id);
        } catch (Exception e) {
            throw e;
        }
    }
}
